#Boa:Frame:AccountsFrame

import wx

def create(parent):
    return AccountsFrame(parent)

[wxID_ACCOUNTSFRAME, wxID_ACCOUNTSFRAMEDELETEBUTTON, 
 wxID_ACCOUNTSFRAMEEDITBUTTON, wxID_ACCOUNTSFRAMELISTCTRL1, 
 wxID_ACCOUNTSFRAMENEWBUTTON, wxID_ACCOUNTSFRAMESELECTBUTTON, 
] = [wx.NewId() for _init_ctrls in range(6)]

class AccountsFrame(wx.Frame):
    def _init_coll_boxSizer1_Items(self, parent):
        # generated method, don't edit

        parent.AddWindow(self.listCtrl1, 3, border=0,
              flag=wx.SHRINK | wx.GROW | wx.EXPAND)
        parent.AddSizer(self.boxSizer2, 1, border=0,
              flag=wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_CENTER_HORIZONTAL | wx.SHRINK | wx.GROW | wx.EXPAND)

    def _init_coll_boxSizer2_Items(self, parent):
        # generated method, don't edit

        parent.AddSpacer(wx.Size(8, 8), border=0, flag=0)
        parent.AddWindow(self.newButton, 1, border=0,
              flag=wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_CENTER_HORIZONTAL)
        parent.AddSpacer(wx.Size(8, 8), border=0, flag=0)
        parent.AddWindow(self.EditButton, 1, border=0,
              flag=wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_CENTER_HORIZONTAL)
        parent.AddSpacer(wx.Size(8, 8), border=0, flag=0)
        parent.AddWindow(self.DeleteButton, 1, border=0,
              flag=wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_CENTER_HORIZONTAL)
        parent.AddSpacer(wx.Size(8, 8), border=0, flag=0)
        parent.AddWindow(self.SelectButton, 1, border=0,
              flag=wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_CENTER_HORIZONTAL)
        parent.AddSpacer(wx.Size(8, 8), border=0, flag=0)

    def _init_sizers(self):
        # generated method, don't edit
        self.boxSizer1 = wx.BoxSizer(orient=wx.VERTICAL)

        self.boxSizer2 = wx.BoxSizer(orient=wx.HORIZONTAL)

        self._init_coll_boxSizer1_Items(self.boxSizer1)
        self._init_coll_boxSizer2_Items(self.boxSizer2)

        self.SetSizer(self.boxSizer1)

    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_ACCOUNTSFRAME, name='AccountsFrame',
              parent=prnt, pos=wx.Point(781, 333), size=wx.Size(562, 406),
              style=wx.DEFAULT_FRAME_STYLE, title='Accounts')
        self.SetClientSize(wx.Size(552, 353))

        self.listCtrl1 = wx.ListCtrl(id=wxID_ACCOUNTSFRAMELISTCTRL1,
              name='listCtrl1', parent=self, pos=wx.Point(0, 0),
              size=wx.Size(552, 264), style=wx.LC_ICON)

        self.newButton = wx.Button(id=wxID_ACCOUNTSFRAMENEWBUTTON,
              label='  New\nAccount', name='newButton', parent=self,
              pos=wx.Point(8, 291), size=wx.Size(128, 33), style=0)
        self.newButton.Bind(wx.EVT_BUTTON, self.OnNewButtonButton,
              id=wxID_ACCOUNTSFRAMENEWBUTTON)

        self.EditButton = wx.Button(id=wxID_ACCOUNTSFRAMEEDITBUTTON,
              label='  Edit\nAccount', name='EditButton', parent=self,
              pos=wx.Point(144, 291), size=wx.Size(128, 33), style=0)

        self.DeleteButton = wx.Button(id=wxID_ACCOUNTSFRAMEDELETEBUTTON,
              label=' Delete\nAccount', name='DeleteButton', parent=self,
              pos=wx.Point(280, 291), size=wx.Size(128, 33), style=0)

        self.SelectButton = wx.Button(id=wxID_ACCOUNTSFRAMESELECTBUTTON,
              label=' Select\nAccount', name='SelectButton', parent=self,
              pos=wx.Point(416, 291), size=wx.Size(128, 33), style=0)

        self._init_sizers()

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnNewButtonButton(self, event):
        event.Skip()
